import java.util.Scanner;

/**
 * Created by hps on 17-4-29.
 */
public class InfixApp {
    public static void main(String[] args) {
        String input, output;
        while (true) {
            System.out.println("Enter infix: ");
            input = getString();
            if(input.equals(""))
                break;
            InToPost theTrans = new InToPost(input);
            output = theTrans.doTrans();
            System.out.println("Postfix is " + output + '\n');
        }
    }

    public static String getString() {
        Scanner scanner = new Scanner(System.in);
        return scanner.nextLine();
    }
}
